//
//  GroupForAdminCell.m
//  YunDongAdmin
//
//  Created by lqq on 2018/9/12.
//  Copyright © 2018年 cloudfighting.com. All rights reserved.
//

#import "GroupForAdminCell.h"

@interface GroupForAdminCell ()
@property (weak, nonatomic) IBOutlet UILabel *indicatorLabel;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;

@end


@implementation GroupForAdminCell

- (void)awakeFromNib {
    [super awakeFromNib];
    _indicatorLabel.layer.cornerRadius = 2;
    _indicatorLabel.layer.masksToBounds = YES;
    [self.contentView addBottomLineViewWithLeftSpace:0 rightSpace:0];
}

- (void)setAdmin:(M_Admin *)admin
{
    _admin = admin;
    _nameLabel.text = admin.userName;
    
}
- (IBAction)callPhone:(id)sender {
    if (_admin.userMobile.length > 0) {
        NSMutableString *str=[[NSMutableString alloc] initWithFormat:@"telprompt://%@",_admin.userMobile];
        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
    } else {
        [AV showRemind:@"该店长暂未绑定手机"];
    }
}

@end
